import request from '@/utils/request'

// 查询服务列表列表
export function listServiceMain(query) {
  return request({
    url: '/ServiceMain/ServiceMain/list',
    method: 'get',
    params: query
  })
}

// 查询服务列表详细
export function getServiceMain(id) {
  return request({
    url: '/ServiceMain/ServiceMain/' + id,
    method: 'get'
  })
}

// 新增服务列表
export function addServiceMain(data) {
  return request({
    url: '/ServiceMain/ServiceMain',
    method: 'post',
    data: data
  })
}

// 修改服务列表
export function updateServiceMain(data) {
  return request({
    url: '/ServiceMain/ServiceMain',
    method: 'put',
    data: data
  })
}

// 删除服务列表
export function delServiceMain(id) {
  return request({
    url: '/ServiceMain/ServiceMain/' + id,
    method: 'delete'
  })
}
